home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_utilities
/
utilities
/
003
/
motorola
/
Sources
/
h
/
extvars
< prev
next >
Wrap
Text File
|
1993-06-26
|
5KB
|
73 lines
/* global variables */
extern int Line_num ; /* current line number */
extern int Local_Line_num; /* current file line number */
extern int PageLen; /* page form length from input line */
extern int Err_count ; /* total number of errors */
extern char Line[MAXBUF] ; /* input line buffer */
extern char Label[MAXLAB] ; /* label on current line */
extern char Op[MAXOP] ; /* opcode mnemonic on current line */
extern char Operand[MAXBUF] ; /* remainder of line after op */
/* (up to ';' rel TER_2.0) */
extern char *Optr; /* pointer into current Operand field */
extern int Result ; /* result of expression evaluation */
extern int Force_word ; /* Result should be a word when set */
extern int Force_byte ; /* Result should be a byte when set */
extern int Pc ; /* Program Counter */
extern int Old_pc ; /* Program Counter at beginning */
extern int Last_sym ; /* result of last lookup */
extern int Pass ; /* Current pass # */
extern int N_files ; /* Number of files to assemble */
extern FILE *Fd ; /* Current input file structure */
extern int Cfn ; /* Current file number 1...n */
extern int Ffn ; /* forward ref file # */
extern int F_ref ; /* next line with forward ref */
extern char **Argv ; /* pointer to file names */
extern int E_total ; /* total # bytes for one line */
extern int E_bytes[E_LIMIT]; /* Emitted held bytes */
extern int E_pc ; /* Pc at beginning of collection*/
extern int Lflag ; /* listing flag 0=nolist, 1=list*/
extern int P_force ; /* force listing line to include Old_pc */
extern int P_total ; /* current number of bytes collected */
extern int P_bytes[P_LIMIT]; /* Bytes collected for listing */
extern int Cflag ; /* cycle count flag */
extern int Cycles ; /* # of cycles per instruction */
extern long Ctotal ; /* # of cycles seen so far */
extern int Sflag ; /* symbol table flag, 0=no symbol */
extern int N_page ; /* new page flag */
extern int Page_num ; /* page number */
extern int CREflag ; /* cross reference table flag */
extern int CRflag ; /* flag to add <CR><LF> to S record */
/* added ver TER_1.1 June 3, 1989 */
extern int nfFlag ; /* if=1 number INCLUDE files separate */
/* ver TER_2.0 June 17, 1989 */
extern int FdCount ; /* INCLUDE files "stack" pointer */
/* ver TER_2.0 June 17, 1989 */
extern char InclFName[MAXBUF]; /* current INCLUDE file name */
extern int F_total ; /* total bytes emitted in S file */
/* ver (TER) 2.02 19 Jun 89 */
extern int Page_lines ; /* total lines this page */
/* ver (TER) 2.02 19 Jun 89 */
extern int Pflag50 ; /* if 1 then form feed every 50 lines */
/* ver (TER) 2.02 19 Jun 89 */
extern int PC_Save[4] ; /* saved contents of CODE,DATA,BSS,AUTO PCs */
/* ver TER_2.09 25 July 89 */
extern int PC_ptr ; /* index or pointer to current PC */
/* initialized to CODE ver TER_2.09 25 July 89 */
extern struct nlist *root; /* root node of the tree */
extern struct InclFile InclFiles[MAXINCFILES]; /* the nesting stack itself */
extern FILE *Objfil; /* object file's file descriptor*/
extern FILE *Forward; /* temp file's file descriptor */
extern FILE *Listfil; /* list file's file descriptor */
extern FILE *Mapfil; /* map file's file descriptor */
extern FILE *Xfil; /* Xref file's file descriptor */
extern char Obj_name[];
extern char Fwd_name[];